Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 577 Bytes

File metadata and controls

30 lines (22 loc) · 577 Bytes

import { Description, Property, Title } from '~/components';

<Title>MaybeArray</Title> Utility type that transforms a type into a maybe Array type.

MaybeArray

Utility type that transforms a type into a maybe Array type.

Generic

  • Value <Property {...properties.Value} />

Return

  • Type <Property {...properties.Type} />

export const properties = { Value: { type: 'any', }, Type: { type: [ { type: 'custom', name: 'Value' }, { type: 'array', item: { type: 'custom', name: 'Value' } }, ], }, };